#include "UdpClient.hpp"

using namespace UdpClientModule;

int main(int argc, char *argv[])
{
    
    if (argc != 3) // 客户端必须传入我们要发送的目的地的IP和端口号
    {
        std::cout << "Usage: ./client ip port" << std::endl;
        return 1;
    }
    std::string ip = argv[1];
    uint16_t port = std::stoi(argv[2]);
    std::unique_ptr<UdpClient> client = std::make_unique<UdpClient>(ip, port);
    client->InitClient();
    client->Start();
    return 0;
}